﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.AddIn.Pipeline;
using System.Windows;
using System.AddIn.Contract;

namespace Dashboard
{
    [AddInAdapter]
    internal class DashboardAddInViewToContractAddInAdapter : ContractBase, IDashboardAddInContract
    {
        private DashboardAddIn view;
        public DashboardAddInViewToContractAddInAdapter(DashboardAddIn view)
        {
            this.view = view;
        }
        public string AddInId()
        {
            return view.AddInId();
        }

        public INativeHandleContract Page()
        {
            return FrameworkElementAdapters.ViewToContractAdapter(view.Page());
        }


        public System.Windows.Forms.UserControl WinFormPage()
        {
            return this.view.WinFormPage();
            //throw new NotImplementedException();
        }
    }
}
